package com.woniu.util;

import lombok.Getter;

@Getter
public enum ResponseEnum {

    OK(200,"操作成功"),
    FAIL(500,"操作失败"),
    // 用户相关状态码可以用 10xx
    USER_LOGIN_SUCCESS(1000,"登录成功"),
    USER_LOGIN_ERROR_1(1001,"用户名不存在"),
    USER_LOGIN_ERROR_2(1002,"用户名存在，密码不正确"),
    USER_LOGIN_ERROR_3(1003,"账户已禁用"),
    USER_LOGIN_ERROR_4(1003,"用户名或密码不能为空"),
    USER_LOGIN_MISS(1004,"用户未登录，无法访问后续接口"),
    BOOK_REQUEST_ERROR(2001,"非正常请求"),
    SYS_BUSY(2002,"系统繁忙请稍后再试")

    ;


    private Integer code;
    private String msg;

    ResponseEnum(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
